 <html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
	<script type="text/javascript" src="web3.min.js"></script>
 </head>
<body class="light">
<h2></h2>
<h3></h3>
 <script type="text/javascript">
 async function sha256(message) {
        const msgBuffer = new TextEncoder().encode(message);                    
        const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer);
        const hashArray = Array.from(new Uint8Array(hashBuffer)); 
        const hashHex = hashArray.map(b => ('00' + b.toString(16)).slice(-2)).join('');
        return hashHex;
    }
	  sha256("data:,0").then((data)=>{
	console.log("sha256:"+data);
	document.querySelector("h2").innerHTML=data;
	
 
   
	fetch("https://mainnet-api.ethscriptions.com/api/ethscriptions/exists/"+data).then((response) => response.json()).then((res2)=>{
		console.log("sha256:",res2);
		if(res2.result){
			document.querySelector("h3").innerHTML=res2.ethscription.sha;
		}	
	});
	});
	</script>
	</body>
	</html>